package category

import (
	"beesoft.ink/application/media/app/model"
	"beesoft.ink/application/media/app/model/base"
)

type Tag struct {
	model.Model `xorm:"extends"`
	Type        uint           `json:"type"`
	Slug        string         `json:"slug"`
	Title       string         `json:"-"`
	Titles      base.Languages `xorm:"-" json:"titles"`
}

func (Tag) TableName() string {
	return "beesoft_category_tags"
}

type TagListReq struct {
	model.Pagination
	model.Sorting
	Type int `json:"type" query:"type" default:"1"`
}
